<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="js/jquery.js"></script>
<script language="javascript" src="js/nhcar.js"></script>
</head>

<body>
<?php include_once 'header.php';?>
<div id="main">
	<div id="content">
        <div id="sidebar">
            <h2>品牌：</h2>
            <ul>
                  <li><a href="#">大众</a></li>
                  <li><a href="#">丰田</a></li>
                  <li><a href="#">吉利</a></li>
                  <li><a href="#">海马</a></li>
                  <li><a href="#">奥迪</a></li>
                  <li><a href="#">劳斯莱斯</a></li>
                  <li><a href="#">雷克萨斯</a></li>
                  <li><a href="#">本田</a></li>
                  <li><a href="#">英菲尼迪</a></li>
                  <li><a href="#">凯迪拉克</a></li>
                  <li><a href="#">奇瑞</a></li>
                 
            </ul>
        </div>
        <div id="main-right">
        <h2>汽车详情</h2>
           <div class="ppic">
           	<img src="images/pm3.jpg" class="pmimg"/>
            <ul>
            	<li><img src="images/ps1.jpg" class="cur" /></li>
                <li><img src="images/ps2.jpg" /></li>
                <li><img src="images/ps3.jpg" /></li>
                <li><img src="images/ps2.jpg" /></li>
                <li><img src="images/ps3.jpg" /></li>
            </ul>
           </div>
        <div class="pinfo">
           <?php 
            $id=isset($_GET['id'])?$_GET['id']:1;
            $link=mysqli_connect("localhost", "root", "");
            mysqli_select_db($link, "nhcar");
            mysqli_set_charset($link, "utf8");
            $sql="select * from product where pid=$id";
            $result= mysqli_query($link, $sql);
            $row=mysqli_fetch_assoc($result);
            $name=$row['pname'];
            $price=$row['pprice'];
            $brand=$row['pcontent'];
            
            ?>
            <h1><?php echo $name;?></h1>
            <h4><label>南汽价：</label>￥<?php echo $price;?></h4>
            <h5>品牌：<a href="#"><?php echo $brand;?></a></h5>
            <form action="addcart.php" method="post">
                <td class="buttontd">
                   <input type="submit" id="addCart" value="加入购物车"> 
                </td>
                
            </form>
            <!-- <p><a href="#" class="cartbt">加入购物车</a></p> -->
            
        <!--<h1>现代 朗动 2013款 1.6L 自动领先型 白色</h1>
            <h4><label>南汽价：</label>￥120,000</h4>
            <h5>品牌：<a href="#">大众</a></h5>
            <p><a href="#" class="cartbt">加入购物车</a></p>-->
        </div>
        
        <div class="pcontent">
            <h2 class="ptitle">商品介绍</h2>
            
            <div class="pintro">
            <img src="images/541bd978Nf15951a9.jpg" />
            <p>由平台卖家提供发票和相应的售后服务。请您放心购买！注：因厂家会在没有任何提前通知的情况下更改产品包装、产地或者一些附件，本司不能确保客户收到的货物与商城图片、产地、附件说明完全一致。只能确保为原厂正货！并且保证与当时市场上同样主流新品一致。若本商城没有及时更新，请大家谅解！ </p>
            </div>
        
        <h2 class="ptitle">评论</h2>
				
			
      <div id="messagelist">
      <ul>
      	 <li>
            <h4><span>2014-07-05</span>网友：游来游去</h4>
        	<div class="messagecontent">
            	<p>信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊</p>
            </div>
        </li>
         <li>
            <h4><span>2014-07-05</span>网友：游来游去</h4>
        	<div class="messagecontent">
            	<p>信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊</p>
            </div>
        </li>
        <li>
            <h4><span>2014-07-05</span>网友：游来游去</h4>
        	<div class="messagecontent">
            	<p>信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊信夺砖石地热活动泊</p>
            </div>
        </li>
        
      </ul>
       <div class="pagenav"><a href="#">&lt;</a><a href="#">1</a><a href="#">2</a><a href="#">3</a><span>…</span><a href="#">&gt;</a></div>
       <div id="form">
      
        
      
      	<form>
        	<p><label>*昵称：</label><input type="text"  id="mUserName" class="txt"/><span class="errorinfo" id="ckmUserName">不能为空</span></p>
            <p><label>*内容：</label><textarea class="mltxt" id="mContent"></textarea><span class="errorinfo" id="ckmContent">不能为空</span></p>
            <p><label class="lblcheckno">*验证码：</label><input type="text"  id="checkno" class="txt"/><img src="images/comment-verifycode.gif" /><img src="images/checknoshow.gif" /><span class="errorinfo" id="ckcheckno">不能为空</span></p>
            <p><input type="submit" class="bt" value="提交" /></p>
            
        </form>
        </div>
      </div>

        
        </div>
        </div>
    </div>
</div>
<?php include_once 'footer.php';?>
</body>
</html>
